package com.itheima.blog.admin.service;

import com.itheima.blog.admin.domain.po.TCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.blog.admin.domain.po.TTag;
import com.itheima.blog.admin.dto.CategoryDto;
import com.itheima.common.domain.BlogPageQuery;
import com.itheima.common.domain.PageResDto;
import com.itheima.common.domain.R;

import java.util.List;

/**
 * <p>
 * 博客分类表 服务类
 * </p>
 *
 * @author author
 * @since 2023-07-12
 */
public interface ITCategoryService extends IService<TCategory> {


    PageResDto queryPage(BlogPageQuery pageQuery);

    Boolean insertCategory(TCategory category);

    Boolean deleteCategory(List<Integer> ids);

    CategoryDto queryCategoryList(Integer categoryId);

    void updateCategory(Integer categoryId, TCategory tCategory);

    void categoryStatus(TCategory tCategory);
}
